using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Data.Odbc;
using System.Data.OleDb;
namespace test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'masivDBDataSet1.clienti' table. You can move, or remove it, as needed.
            //this.clientiTableAdapter1.Fill(this.masivDBDataSet1.clienti);
            // TODO: This line of code loads data into the 'masivDBDataSet.clienti' table. You can move, or remove it, as needed.
            this.clientiTableAdapter.Fill(this.masivDBDataSet.clienti);


        }

        private void button1_Click(object sender, EventArgs e)
        {
       
            comenziClientiTableAdapters.comenziClientiTableAdapter comenzi_adapter = new test.comenziClientiTableAdapters.comenziClientiTableAdapter();
            //comenziClienti.comenziClientiDataTable comenzi = comenzi_adapter.GetDataComenzi();

            comenzi_adapter.InsertComenzi(int.Parse(idClienttextBox.Text), dataComdateTimePicker1.Value, dateTimePicker2.Value, textBox4.Text);
            
        }
    }
}